﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MySql.Data.MySqlClient;

namespace MedicareDataAccess
{
    public abstract class DAOConnection
    {
        public MySqlCommand DBGetCommand(string query)
        {
            MySqlConnection conn = new MySqlConnection();
            conn.ConnectionString = "Server=localhost;Database=medicare;Uid=root;Pwd=admin;";
            MySqlCommand cm = new MySqlCommand();
            cm.Connection = conn;
            cm.CommandText = query;
            conn.Open();
            return cm;
        }
    }
}
